package com.xbongbong.paas.field;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @author: lee
 * @date: 2020/9/9 19:24
 * @desrcption:
 */
@Getter
@Setter
@ToString
public class MultiUnitItemPoJo implements Serializable {

    private static final long serialVersionUID = 2102942351046960506L;

    /**
     * 显示的值
     */
    private String text;

    /***
     * 保存的值
     */
    private Long value;
    /**
     * 基本单位名称
     */
    private String baseName;
    /**
     * 基本单位id
     */
    private Long baseValue;

    private List<UnitItemPoJo> itemDataPoJoList;

    public MultiUnitItemPoJo() {
    }

    public MultiUnitItemPoJo(String text, Long value) {
        this.text = text;
        this.value = value;
    }

    public MultiUnitItemPoJo(String text, Long value, List<UnitItemPoJo> itemDataPoJoList) {
        this.text = text;
        this.value = value;
        this.itemDataPoJoList = itemDataPoJoList;
    }
}
